package cn.sjxy.baseLib;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class BaseQuery {
    @NotNull(message = "pageIndex必填")
    @Min(value = 1, message = "最小为1")
    protected Integer pageIndex;

    @NotNull(message = "pageSize必填")
    @Min(value = 1, message = "最小为1")
    protected Integer pageSize;
}
